home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 6 / MacMania 6.toast / / Tools&Utilities / TouchMe 1.2□ / touchMe 1.2 Folder / touchMe source codes / CW11 PP source / source / Common Lib / UFinderEvents.h < prev    next >
Encoding:
Text File  |  1997-04-25  |  1.7 KB  |  67 lines  |  [TEXT/CWIE]

  1. // ==================================================
  2. //    UFinderEvents.h
  3. //    Copyright (C) 1997 Mizutori Tetsuya
  4. //    March 24, 1997.
  5. // ==================================================
  6. //    All documents are pretty-printed in 10-point Geneva font.
  7.  
  8. #pragma once
  9.  
  10. class UFinderEvents {
  11.  
  12. public:
  13.                 UFinderEvents();
  14.                 ~UFinderEvents();
  15.  
  16.     // Send a 'Open Selection with File' event to the Finder.
  17.     static void        OpenSelection(
  18.                     const FSSpec &        inFSSpec );
  19.  
  20.     static void        OpenSelection(
  21.                     ConstStr255Param    inFullPathname );
  22.  
  23.     // Send a 'GetInfo Selection with File' event to the Finder.
  24.     static void        GetInfoSelection(
  25.                     const FSSpec &        inFSSpec );
  26.  
  27.     static void        GetInfoSelection(
  28.                     ConstStr255Param    inFullPathname );
  29.  
  30. protected:
  31.  
  32.     // Send a 'XXXX Selection for File' event to the Finder.
  33.     static void        SendAEWithSelectionToFinder(
  34.                     AEEventID            inAEEventID,
  35.                     const FSSpec &        inFSSpec );
  36.  
  37.     static void        SendAEWithSelectionToFinder(
  38.                     AEEventID            inAEEventID,
  39.                     ConstStr255Param    inFullPathname );
  40.  
  41.     // Create an inAEEventID event to be sent to Finder.
  42.     static void    CreateAppleEventForFinder(
  43.                     AppleEvent &        ioAppleEvent,
  44.                     AEEventID             inAEEventID );
  45.  
  46.     // Put the directory info of file or pathname to the event as a direct parameter.
  47.     static void        PutParamContainer(
  48.                     AppleEvent &        ioAppleEvent,
  49.                     const FSSpec &        inFSSpec );
  50.  
  51.     static void        PutParamContainer(
  52.                     AppleEvent &        ioAppleEvent,
  53.                     ConstStr255Param    inFullPathname );
  54.  
  55.     // Add a selection of file[s] or pathname[s]  as an "items" parameter.
  56.     static void        PutParamItems(
  57.                     AppleEvent &        ioAppleEvent,
  58.                     const FSSpec &        inFSSpec );
  59.  
  60.     static void        PutParamItems(
  61.                     AppleEvent &        ioAppleEvent,
  62.                     ConstStr255Param    inFullPathname );
  63.  
  64. };
  65.  
  66. // end of definitions
  67.